package com.livegoods.controller;

import com.livegoods.pojo.House;
import com.livegoods.pojo.LivegoodsResult;
import com.livegoods.service.DetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DetailsController {

    @Autowired
    private DetailsService detailsService;

    @RequestMapping("/details")
    public House details(String id){
        return detailsService.details(id);
    }
}
